import axios from "axios";

const service = axios.create({
  baseURL: "http://127.0.0.1:8888",
});

// 请求拦截
service.interceptors.request.use(
  (config) => {
    return config;
  },
  (err) => {
    return Promise.reject(err);
  }
);

// 响应拦截
service.interceptors.response.use(
  (response) => {
    return response;
  },
  (err) => {
    return Promise.reject(err);
  }
);

export default service;
